package com.lixw.controller;

import com.lixw.pojo.Employee;
import com.lixw.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName: EmployeeController
 * @Description:
 * @Author: xuweiLi
 * @Create: 2025/6/24 21:02
 **/
@RestController
@RequestMapping("/employee")
public class EmployeeController {

    @Autowired
    private EmployeeService employeeService;

    @GetMapping
    public List<Employee> findList() {
        return employeeService.findList();
    }
}